﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;

namespace _01_Tower3._0
{
    internal class SceneCombat : IScene
    {
        public string Name => "SceneCombat";

        CombatSystem cs;
        public Map map;
        int mapIndex;

        public SceneCombat(CombatSystem cs)
        {
            this.cs = cs;
        }

        public void Init()
        {

        }

        public void Input()
        {
            if (InputSystem.Instance.IsKeyPressed(ConsoleKey.Spacebar))
            {
                map.ChangeMap(mapIndex++);
                mapIndex %= 3;
            }
            cs.Input();
        }

        public void Update()
        {
            cs.Update();
        }

        public void FixUpdate()
        {

        }

        public void Render()
        {
            cs.Render();
            cs.map.Render();
            InfoSystem.Instance.PrintInfo();
        }
        public void End()
        {
            
        }
    }
}
